package course13;

public class Mistake {

    public static void main(String[] args) {
        //String[] students={"lilei","hanmeimei","lucy"};
       // System.out.println(students[2]);
        try {
            String[] students={"lillei","hanmeimei","lucy"};
            System.out.println(students[4]);
        }catch (ArrayIndexOutOfBoundsException e){
            System.out.println("Expection thrown:"+e);
            System.out.println("出错了");
            System.out.println("请输入正确的数组");
        }
    }
}
/*
* try{
* 程序代码块
* }catch（Exception e）{
* catch块
* }
* */
